home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / cli / mx2src.arc / LP.MOD < prev    next >
Text File  |  1989-01-05  |  591b  |  20 lines

  1. MODULE  lp;
  2. FROM    SYSCALL         IMPORT  Trigger,SpintInfo;
  3. FROM    GEMDOS          IMPORT  Term;
  4. FROM    SYSTEM          IMPORT  ADDRESS,ADR;
  5. FROM    Terminal        IMPORT  WriteString,WriteLn;
  6. VAR     ok              :       BOOLEAN;
  7.         spintcmd        :       POINTER TO ARRAY [0..1] OF LONGCARD;
  8. BEGIN
  9.         IF SpintInfo(0,spintcmd) THEN
  10.            spintcmd^[0]:=1;
  11.            ok:=Trigger(0);
  12.         ELSE
  13.            WriteLn;
  14.            WriteString("Background spooler not running.");
  15.            WriteLn;
  16.            ok:=Term(-1);
  17.         END;
  18.         ok:=Term(0);
  19. END     lp.
  20.